#ifndef _PlayerDetailContent_h__
#define _PlayerDetailContent_h__

#include "Global.h"

class PlayerDetailContent
	: public CCNode
	, public CCBMemberVariableAssigner
	, public CCBSelectorResolver
	, public CCNodeLoaderListener
{
public:
	CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(PlayerDetailContent, create);

	PlayerDetailContent(void);
	~PlayerDetailContent(void);

	virtual SEL_MenuHandler onResolveCCBCCMenuItemSelector(CCObject * pTarget, CCString * pSelectorName);
	virtual SEL_CCControlHandler onResolveCCBCCControlSelector(CCObject * pTarget, CCString * pSelectorName);
	virtual bool onAssignCCBMemberVariable(CCObject * pTarget, CCString * pMemberVariableName, CCNode * pNode);
	virtual void onNodeLoaded(CCNode * pNode, CCNodeLoader * pNodeLoader);
	bool init();
	void refresh();
	void onEnter();
	void onExit();
private:
	int mCurLifeValue;
	int mAddLifeValue;
	int mCurEnergyValue;
	int mAddEnergyValue;
	int mCurProficiency;
	int mMaxProficiency;
	CCLabelTTF* mName;
	CCLabelTTF* mSex;
	CCLabelTTF* mLevel;
	CCLabelTTF* mExp;
	CCLabelTTF* mCoin;
	CCLabelTTF* mMoney;
	CCLabelTTF* mEnergy;
	CCLabelTTF* mNextEnergyTime;
	CCLabelTTF* mAllEnergyTime;
	CCLabelTTF* mPower;
	CCLabelTTF* mNextPowerTime;
	CCLabelTTF* mAllPowerTime;
	CCLabelTTF* mCurLife;
	CCLabelTTF* mAddLife;
	CCLabelTTF* mCurEnergy;
	CCLabelTTF* mAddEnergy;
	CCLabelTTF* mProficiency;
	CCLabelTTF* mPutonCount;
	CCLabelTTF* mLife;
	CCLabelTTF* mAttack;
	CCLabelTTF* mDefense;
	CCLabelTTF* mAtkMaxReappear;
	CCLabelTTF* mDefMaxReappear;
	CCLabelTTF* mExpGainRatio;
	CCLabelTTF* mCoinGainRatio;
	CCLabelTTF* mEquipageDropRatio;
	CCLabelTTF* mPowerRecoverRatio;
	CCLabelTTF* mEnergyRecoverRatio;
	void _onNotification(CCObject* object);
	void onDoItClick(CCObject* pSender);
	void onAvatarBtnClick(CCObject * pSender, CCControlEvent pCCControlEvent);
	void onAddLifeBtnClick(CCObject * pSender, CCControlEvent pCCControlEvent);
	void onSubLifeBtnClick(CCObject * pSender, CCControlEvent pCCControlEvent);
	void onAddEnergyBtnClick(CCObject * pSender, CCControlEvent pCCControlEvent);
	void onSubEnergyBtnClick(CCObject * pSender, CCControlEvent pCCControlEvent);
	void onAddOkBtnClick(CCObject * pSender, CCControlEvent pCCControlEvent);
	
};

#endif